| Instance | Branch |
|---|
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 function isEmail(value: string) { | |
| const splitPosition = value.lastIndexOf("@"); | |
| if (splitPosition < 0) { | |
| return false; | |
| } | |
| const localPart = value.substring(0, splitPosition); | |
| const domainPart = value.substring(splitPosition + 1); | |
| if (!isEmailLocalPart(localPart)) { | |
| return false; | |
| } |
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
| function injectCdnScript(cdnUrl) { | |
| var script = document.createElement('script') | |
| script.src = cdnUrl | |
| script.onload = function(e) { | |
| console.log('loaded cdn ' + cdnUrl) | |
| } | |
| var head = document.getElementsByTagName('head')[0] | |
| head.appendChild(script) | |
| } |
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
| (function(root, factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| define(factory); | |
| } | |
| else if (typeof module === 'object' && module.exports) { | |
| module.exports = factory(); | |
| } | |
| else { | |
| root.BufferedPayloadQueue = factory(); | |
| } |
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
| <% | |
| String name = "[[INSERT ATTRIBUTE NAME]]"; | |
| Object object = pageContext.findAttribute(name); | |
| if (object != null) { | |
| java.io.Writer writer = pageContext.getOut(); | |
| Class<?> beanClass = object.getClass(); | |
| String groupName = beanClass.getName() + " instance description"; | |
| writer.write("<script>console.group('" + groupName + "');"); |
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
| Don't speak English well. Thank you for your patience. | |
| It's functions xml file. | |
| <mapper namespace="org.jacknie.mybatis.Functions"> | |
| <sql id="isBlank"> | |
| <bind name="isBlank" value=":[@org.apache.commons.lang3.StringUtils@isBlank(#this)]" /> | |
| </sql> | |
| <sql id="sysout"> | |
| <bind name="sysout" value=":[@System@out.println(#this)]" /> | |
| </sql> |