Skip to content

Commit f546869

Browse files
committed
docs: Update repo references to Wikimedia
Change-Id: Ic3ffeff4be2bf0f767dbc9e1609cd0048865d0ee
1 parent 63edf42 commit f546869

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

.coveralls.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PHP port of CSSJanus. https://github.com/cssjanus/php-cssjanus
1+
PHP port of CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
22

33
Copyright 2020 Timo Tijhof
44
Copyright 2014 Trevor Parscal

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/cssjanus/php-cssjanus.svg?branch=main)](https://travis-ci.com/cssjanus/php-cssjanus) [![Packagist](https://img.shields.io/packagist/v/cssjanus/cssjanus.svg?style=flat)](https://packagist.org/packages/cssjanus/cssjanus) [![Coverage Status](https://coveralls.io/repos/github/cssjanus/php-cssjanus/badge.svg?branch=main)](https://coveralls.io/github/cssjanus/php-cssjanus?branch=main)
1+
[![Packagist](https://img.shields.io/packagist/v/cssjanus/cssjanus.svg?style=flat)](https://packagist.org/packages/cssjanus/cssjanus)
22

33
# CSSJanus
44

@@ -38,16 +38,16 @@ If a rule is not meant to be flipped by CSSJanus, use a `/* @noflip */` comment
3838
}
3939
```
4040

41-
## Who uses CSSJanus?
42-
43-
* **[Wikimedia Foundation](https://www.wikimedia.org/)**, the non-profit behind Wikipedia and other free knowledge projects.<br/>Used in [MediaWiki](https://www.mediawiki.org/wiki/MediaWiki), on [Wikipedia](https://ar.wikipedia.org/), and [other projects](https://doc.wikimedia.org/).
44-
4541
## Port
4642

47-
This is a PHP port of the Node.js implementation of CSSJanus, and was originally
48-
based on a [Google project](http://code.google.com/p/cssjanus/).
43+
This is a PHP port of the Node.js implementation of CSSJanus. Feature requests and bugs related
44+
to the actual CSS transformation logic or test cases of it, should be submitted upstream
45+
at <https://github.com/cssjanus/cssjanus>.
46+
47+
CSSJanus was originally a [Google project](http://code.google.com/p/cssjanus/).
4948

50-
Feature requests and bugs related to the actual CSS transformation logic or test
51-
cases of it, should be submitted upstream at <https://github.com/cssjanus/cssjanus>.
49+
## Contribute
5250

53-
Upstream releases will be ported here.
51+
* Issue tracker: <https://phabricator.wikimedia.org/tag/cssjanus/>
52+
* Source code: <https://gerrit.wikimedia.org/g/mediawiki/libs/php-cssjanus>
53+
* Submit patches via Gerrit: <https://www.mediawiki.org/wiki/Developer_account>

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Supported versions
44

5-
The [latest release](https://github.com/cssjanus/php-cssjanus/releases) is supported with security updates.
5+
The latest release is supported with security updates.
66

77
## Reporting a vulnerability
88

99
Wikimedia takes security seriously. If you believe you have found a security issue,
1010
see [mediawiki.org/wiki/Reporting_security_bugs](https://www.mediawiki.org/wiki/Reporting_security_bugs)
1111
for how to responsibly report it, so we can take steps to address it as quickly as possible.
1212

13-
Thanks!
13+
Thanks!

src/CSSJanus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* PHP port of CSSJanus. https://github.com/cssjanus/php-cssjanus
3+
* PHP port of CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
44
*
55
* Copyright 2020 Timo Tijhof
66
* Copyright 2014 Trevor Parscal
@@ -95,7 +95,7 @@ private static function buildPatterns() {
9595
$patterns['possibly_negative_quantity'] = "((?:-?{$patterns['quantity']})|(?:inherit|auto))";
9696
$patterns['color'] = "(#?{$patterns['nmchar']}+|(?:rgba?|hsla?)\([ \d.,%-]+\))";
9797
// Use "*+" instead of "*?" to avoid reaching the backtracking limit.
98-
// <https://github.com/cssjanus/php-cssjanus/issues/14>, <https://phabricator.wikimedia.org/T215746#4944830>.
98+
// <https://phabricator.wikimedia.org/T326481>, <https://phabricator.wikimedia.org/T215746#4944830>.
9999
$patterns['url_chars'] = "(?:{$patterns['url_special_chars']}|{$patterns['nonAscii']}|{$patterns['escape']})*+";
100100
$patterns['lookahead_not_open_brace'] = "(?!({$patterns['nmchar']}|\\r?\\n|\s|#|\:|\.|\,|\+|>|~|\(|\)|\[|\]|=|\*=|~=|\^=|'[^']*'|\"[^\"]*\"|" . self::TOKEN_COMMENT . ")*+{)";
101101
$patterns['lookahead_not_closing_paren'] = "(?!{$patterns['url_chars']}{$patterns['valid_after_uri_chars']}\))";

0 commit comments

Comments
 (0)