Created
December 29, 2023 08:57
-
-
Save hansamlin/c7dec509c3a64e5877a66f94fcddde53 to your computer and use it in GitHub Desktop.
check is javascript protocol
This file contains hidden or 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
export const isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment