Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix typo. Remove useless spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Lyashuk committed Mar 5, 2017
1 parent 51698f3 commit ac48edd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<label for="time-ex">Time with seconds </label>
</div>
<div class="six columns">
<input class="u-full-width" id="time-ex" type="text" placeholder="27/10/2016 23:15"
<input class="u-full-width" id="time-ex" type="text" placeholder="11:23:15"
v-mask="'##:##:##'"
v-model="models.timeWithSeconds"
/>
Expand Down
8 changes: 4 additions & 4 deletions src/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* {@link https://github.com/romulobrasil/PureMask.js}
*
* @param {String} data String to mask (input value)
* @param {String} mask Mask format, like `####-##`
* @param {String} [mask] Mask format, like `####-##`
* @returns {string} Formatted text
*/
export default function (data, mask){
Expand All @@ -26,9 +26,9 @@ export default function (data, mask){
case 'A' : if (/[a-z]/i.test(c)) {text += c;} else {x = 0;} break;
case 'N' : if (/[a-z0-9]/i.test(c)) {text += c;} else {x = 0;} break;
case 'X' : text += c; break;
default :
text += m;
default :
text += m;

// preserve characters that are in the same spot we need to insert a mask
// character by shifting the data over to the right (issue #5, & #7)
if (c && c !== m) {
Expand Down

0 comments on commit ac48edd

Please sign in to comment.