| OLD | NEW |
| (Empty) | |
| 1 /** |
| 2 @license |
| 3 Copyright (c) 2017 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 */ |
| 10 |
| 11 export const VAR_ASSIGN = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'
|"(?:\\"|.)*?"|\([^\)]*?\)|[^};{])+)|\{([^\}]*)\}(?:(?=[;\s}])|$))/gi; |
| 12 export const MIXIN_MATCH = /(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi; |
| 13 export const VAR_CONSUMED = /(--[\w-]+)\s*([:,;)]|$)/gi; |
| 14 export const ANIMATION_MATCH = /(animation\s*:)|(animation-name\s*:)/; |
| 15 export const MEDIA_MATCH = /@media[^(]*(\([^)]*\))/; |
| 16 export const IS_VAR = /^--/; |
| 17 export const BRACKETED = /\{[^}]*\}/g; |
| 18 export const HOST_PREFIX = '(?:^|[^.#[:])'; |
| 19 export const HOST_SUFFIX = '($|[.:[\\s>+~])'; |
| OLD | NEW |