action-debian-package/node_modules/ramda/es/internal/_cloneRegExp.js

3 lines
243 B
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
export default function _cloneRegExp(pattern) {
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
}