omi v1.1.7 - fix code-commenting in css
This commit is contained in:
parent
270ef31c5f
commit
562e7455d2
16
README.md
16
README.md
|
@ -66,10 +66,10 @@ $ npm install omi
|
|||
|
||||
## CDN
|
||||
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.min.js](https://unpkg.com/omi@1.1.6/dist/omi.min.js)
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.js](https://unpkg.com/omi@1.1.6/dist/omi.js)
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js)
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.min.js](https://unpkg.com/omi@1.1.7/dist/omi.min.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.js](https://unpkg.com/omi@1.1.7/dist/omi.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.js)
|
||||
|
||||
## 感谢
|
||||
|
||||
|
@ -130,10 +130,10 @@ if using 'omi.lite.js' (without [mustache.js](https://github.com/janl/mustache.j
|
|||
|
||||
## CDN
|
||||
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.min.js](https://unpkg.com/omi@1.1.6/dist/omi.min.js)
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.js](https://unpkg.com/omi@1.1.6/dist/omi.js)
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.min.js)
|
||||
* [https://unpkg.com/omi@1.1.6/dist/omi.lite.js](https://unpkg.com/omi@1.1.6/dist/omi.lite.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.min.js](https://unpkg.com/omi@1.1.7/dist/omi.min.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.js](https://unpkg.com/omi@1.1.7/dist/omi.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.min.js)
|
||||
* [https://unpkg.com/omi@1.1.7/dist/omi.lite.js](https://unpkg.com/omi@1.1.7/dist/omi.lite.js)
|
||||
|
||||
## Thanks
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Omi v1.1.6 By dntzhang
|
||||
* Omi v1.1.7 By dntzhang
|
||||
* Github: https://github.com/AlloyTeam/omi
|
||||
* MIT Licensed.
|
||||
*/
|
||||
|
@ -1741,7 +1741,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
g2 = "";
|
||||
}
|
||||
|
||||
if (g0.indexOf(';base64') > 0) {
|
||||
if (g0.indexOf(';base64') !== -1 || g0.indexOf('/') !== -1) {
|
||||
return g0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Omi v1.1.6 By dntzhang
|
||||
* Omi v1.1.7 By dntzhang
|
||||
* Github: https://github.com/AlloyTeam/omi
|
||||
* MIT Licensed.
|
||||
*/
|
||||
|
@ -1125,7 +1125,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
g2 = "";
|
||||
}
|
||||
|
||||
if (g0.indexOf(';base64') > 0) {
|
||||
if (g0.indexOf(';base64') !== -1 || g0.indexOf('/') !== -1) {
|
||||
return g0;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "omi",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.7",
|
||||
"description": "Open and modern framework for building user interfaces.",
|
||||
"main": "dist/omi.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -17,7 +17,7 @@ function scoper(css, prefix) {
|
|||
g2 = ""
|
||||
}
|
||||
|
||||
if (g0.indexOf(';base64') > 0) {
|
||||
if (g0.indexOf(';base64') !== -1 || g0.indexOf('/') !== -1) {
|
||||
return g0;
|
||||
}
|
||||
|
||||
|
|
|
@ -80,4 +80,13 @@ describe("scoper", function() {
|
|||
expect(actual).toBe(expected);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Comment", function() {
|
||||
var rule = "/* .item:nth-child(odd) {float: left;}*/";
|
||||
var expected = rule;
|
||||
var actual = style.scoper(rule, "#scoper-1");
|
||||
it("expect font faces works well", function() {
|
||||
expect(actual).toBe(expected);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue