Skip to content

Commit

Permalink
Escape backslashes in template literals
Browse files Browse the repository at this point in the history
  • Loading branch information
keanulee committed Sep 28, 2018
1 parent 75dfe58 commit 9cd93f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shop-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class ShopCheckout extends PolymerElement {
</div>
<div class="row input-row">
<shop-input>
<input type="tel" id="accountPhone" name="accountPhone" pattern="\d{10,}"
<input type="tel" id="accountPhone" name="accountPhone" pattern="\\d{10,}"
placeholder="Phone Number" required
aria-labelledby="accountPhoneLabel accountInfoHeading">
<shop-md-decorator error-message="Invalid Phone Number" aria-hidden="true">
Expand Down Expand Up @@ -292,7 +292,7 @@ class ShopCheckout extends PolymerElement {
</div>
<div class="row input-row">
<shop-input>
<input type="tel" id="ccNumber" name="ccNumber" pattern="[\d\s]{15,}"
<input type="tel" id="ccNumber" name="ccNumber" pattern="[\\d\\s]{15,}"
placeholder="Card Number" required
autocomplete="cc-number">
<shop-md-decorator error-message="Invalid Card Number" aria-hidden="true">
Expand Down Expand Up @@ -345,7 +345,7 @@ class ShopCheckout extends PolymerElement {
</shop-md-decorator>
</shop-select>
<shop-input>
<input type="tel" id="ccCVV" name="ccCVV" pattern="\d{3,4}"
<input type="tel" id="ccCVV" name="ccCVV" pattern="\\d{3,4}"
placeholder="CVV" required
autocomplete="cc-csc">
<shop-md-decorator error-message="Invalid CVV" aria-hidden="true">
Expand Down

0 comments on commit 9cd93f9

Please sign in to comment.