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
/** | |
* Render the Global Trade Identification Number (GTIN) meta field. | |
*/ | |
function woocommerce_render_gtin_field() { | |
$input = array( | |
'id' => '_gtin', | |
'label' => sprintf( | |
'<abbr title="%1$s">%2$s</abbr>', | |
_x( 'Global Trade Identification Number', 'field label', 'my-theme' ), | |
_x( 'GTIN', 'abbreviated field label', 'my-theme' ) |
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
<html> | |
<script> | |
window.onload = function() { | |
nativeInterface.hideSplashScreen() | |
} | |
</script> | |
<style> | |
.with-css { | |
pointer-events: none; |
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
var x = new RegExp( "/" ) | |
console.log(x.test( "/hello" )); | |
var serializedRegexParser = /^\/(.+)\/(\w+)?$/ | |
var serializedRegex = x.toString(); | |
console.log('serializedRegex:', serializedRegex); | |
var matches = serializedRegexParser.exec(serializedRegex); | |
var [full, regexString, regexFlags] = matches; |