Skip to content

Commit

Permalink
fix: some issuse (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: huang yao <[email protected]>
  • Loading branch information
kirakiray and kirakiray authored Oct 9, 2023
1 parent 59c155c commit a24d0a9
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dist/drill.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! drill.js - v5.3.1 https://github.com/kirakiray/drill.js (c) 2018-2023 YAO
//! drill.js - v5.3.2 https://github.com/kirakiray/drill.js (c) 2018-2023 YAO
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -184,7 +184,7 @@
Object.entries(alias).forEach(([name, path]) => {
if (/^@.+/.test(name)) {
if (!aliasMap[name]) {
if (/^\//.test(path)) {
if (!/^\./.test(path)) {
aliasMap[name] = path;
} else {
throw `The address does not match the specification, please use '/' or or the beginning of the protocol: '${path}'`;
Expand Down
4 changes: 2 additions & 2 deletions dist/drill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a24d0a9

Please sign in to comment.