Last active
June 17, 2016 15:22
-
-
Save Andreolle/278957a8bd511662db001e4d2091f4c4 to your computer and use it in GitHub Desktop.
Regex verifica se está usando uma LID
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
if (/(.*)\?lid=(.*)/ig.test(window.location.href)) { | |
console.log("Você está numa LID, escreva seus códigos para Homologação aqui...."); | |
} else { | |
console.log("Você não está numa LID"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment