Created
October 12, 2017 14:52
-
-
Save Bewitchedyegor/da5ba17cfdc19d2321475ee37b0b9116 to your computer and use it in GitHub Desktop.
URL mask based on jquery.mask.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#banner_link').inputmask("url", { | |
mask: "https://www.*{1,20}[.*{1,20}]", | |
greedy: false, | |
clearMaskOnLostFocus: false, | |
clearIncomplete: false, | |
definitions: { | |
'*': { | |
validator: "[0-9A-Za-z!#$%&'*+/=?^_`{|}~\-]", | |
cardinality: 1, | |
casing: "lower" | |
} | |
} | |
}).css('color', '#999'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment