HEX
Server: nginx/1.28.3
System: Linux lightweb-s1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User: drdrivek-71 (1047)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/hasdeuac-119/has.deu.ac.kr/node_modules/adjust-sourcemap-loader/codec/bower-component.js
'use strict';

/**
 * Codec for code generated by the Bower plugin.
 * @type {{name:string, decode:function, abstract:boolean}}
 */
module.exports = {
  name    : 'bowerComponent',
  decode  : decode,
  abstract: true
};

/**
 * Validate the given uri (abstract).
 * @this {{options: object}} A loader or compilation
 * @param {string} uri A source uri to decode
 * @returns {boolean|string} False where unmatched else True
 */
function decode(uri) {
  return /^\/?([\w-]+)\s+\(bower component\)$/.test(uri);
}